package com.itheima.vms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.vms.domain.po.Brand;
import com.itheima.vms.mapper.BrandMapper;
import com.itheima.vms.service.IBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandServiceImpl extends ServiceImpl<BrandMapper, Brand> implements IBrandService {

    @Autowired
    private BrandMapper brandMapper;
    @Override
    public List<Brand> list(){
        // 使用自定义的SQL查询，包含逻辑删除过滤
        return brandMapper.selectList(null);
    }
}